package com.aiju.cash.ui.pay.entity;

import com.aiju.bean.Good;

import java.io.Serializable;
import java.util.List;

/**
 * @author: 佐为
 * @date: 2016-12-06 15:31
 * @version: V1.0
 * @Description: 付款实体
 */
public class Pay implements Serializable {

    private String storeId;//店铺编号
    private String subject;//商品名称
    private String price;//最终付款价格
    private String sumPrice;//总价（原价）
    private String operatorId;  //操作员编号
    private String operatorName; //操作员昵称
    private String privType;//优惠方式
    private String privTypeValue;//优惠内容
    private String privPrice;//优惠价格
    private String shouldPrice;//应付价格
    private String actualPrice;//实付价格
    private String changePrice;//找零
    private String roundPrice;//抹零
    private String detail;//商品详情（json字符串，数组形式）属性如下

    private String sum;//商品个数
    private List<Good> selectGoods; //已选商品

    private String memberPhone; //会员电话

    public String getMemberPhone() {
        return memberPhone == null ? "" : memberPhone;
    }

    public void setMemberPhone(String memberPhone) {
        this.memberPhone = memberPhone;
    }

    public String getPrivTypeValue() {
        return privTypeValue;
    }

    public void setPrivTypeValue(String privTypeValue) {
        this.privTypeValue = privTypeValue;
    }

    public List<Good> getSelectGoods() {
        return selectGoods;
    }

    public void setSelectGoods(List<Good> selectGoods) {
        this.selectGoods = selectGoods;
    }

    public String getSum() {
        return sum;
    }

    public void setSum(String sum) {
        this.sum = sum;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    public String getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(String actualPrice) {
        this.actualPrice = actualPrice;
    }

    public String getChangePrice() {
        return changePrice;
    }

    public void setChangePrice(String changePrice) {
        this.changePrice = changePrice;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPrivPrice() {
        return privPrice;
    }

    public void setPrivPrice(String privPrice) {
        this.privPrice = privPrice;
    }

    public String getPrivType() {
        return privType;
    }

    public void setPrivType(String privType) {
        this.privType = privType;
    }

    public String getRoundPrice() {
      /*  double v = Double.valueOf(privPrice) + Double.valueOf(shouldPrice);
        double v1 = Double.valueOf(sumPrice) - v;
        return String.valueOf(v1);*/
        return roundPrice;
    }

    public void setRoundPrice(String roundPrice) {
        this.roundPrice = roundPrice;
    }

    public String getShouldPrice() {
        return shouldPrice;
    }

    public void setShouldPrice(String shouldPrice) {
        this.shouldPrice = shouldPrice;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(String sumPrice) {
        this.sumPrice = sumPrice;
    }


}
